package com.sea.app.module.process.domain.bean;

import com.sea.app.common.kit.IdWorker;
import org.activiti.engine.impl.cfg.IdGenerator;

import java.util.UUID;

/**
 * Created by 31417 on 2017/4/26.
 */
public class UuidGenerator implements IdGenerator {
    IdWorker idWorker = new IdWorker();
    @Override
    public String getNextId() {
       // return UUID.randomUUID().toString().replace("-","");
        return String.valueOf(idWorker.nextId());
    }
}
